home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / tex / style / misc / amstext.sty < prev    next >
Text File  |  1995-11-25  |  5KB  |  115 lines

  1. %% This is file `amstext.sty' generated from `amstext.doc'
  2. %% on 21-JUN-1991 by the docstrip.ams utility (1.0). 
  3. %% 
  4. %%@texfile{%
  5. %% filename="amstext.sty",
  6. %% version="1.1",
  7. %% date="21-JUN-1991",
  8. %% filetype="AMS-LaTeX: option",
  9. %% copyright="Copyright (C) American Mathematical Society, all rights
  10. %%   reserved.  Copying of this file is authorized only if either:
  11. %%   (1) you make absolutely no changes to your copy, including name;
  12. %%   OR (2) if you do make changes, you first rename it to some other
  13. %%   name.",
  14. %% author="American Mathematical Society",
  15. %% address="American Mathematical Society,
  16. %%   Technical Support Group,
  17. %%   P. O. Box 6248,
  18. %%   Providence, RI 02940,
  19. %%   USA",
  20. %% telephone="401-455-4080 or (in the USA) 800-321-4AMS",
  21. %% email="Internet: Tech-Support@Math.AMS.com",
  22. %% checksumtype="line count",
  23. %% checksum="114",
  24. %% codetable="ISO/ASCII",
  25. %% keywords="latex, amslatex, ams-latex",
  26. %% abstract="This file is part of the AMS-\LaTeX{} package, ver. 1.1.
  27. %%   It is a \LaTeX{} option file that defines a \verb|\text| macro, which
  28. %%   makes it easy to incorporate fragments of text inside a displayed
  29. %%   equation or a sub or superscript. Font sizes are automatically
  30. %%   scaled in sub/superscripts."
  31. %%}
  32. \expandafter\ifx\csname amstext.sty\endcsname\relax
  33. \expandafter\def\csname amstext.sty\endcsname{}
  34. \else\message{---already loaded}\endinput\fi
  35. \def\filename{amstext.sty}
  36. \def\fileversion{1.1} \def\filedate{21-JUN-1991}
  37. \immediate\write16{%
  38. AMS-LaTeX option `\filename' (\fileversion, \filedate)}
  39. %%% end of file header
  40. \@ifundefined{extract@font}
  41.      {\errmessage{The style option `amstext' does not make sense if you
  42.                do not use a format with the new font selection scheme.}
  43.       \endinput}
  44.      {}
  45. \def\RIfM@{\relax\protect\ifmmode}
  46. \def\text{\RIfM@\expandafter\text@\else\expandafter\mbox\fi}
  47. \def\text@#1{\mathchoice
  48.    {\textdef@\displaystyle\f@size{#1}}%
  49.    {\textdef@\textstyle\f@size{\firstchoice@false #1}}%
  50.    {\textdef@\scriptstyle\sf@size{\firstchoice@false #1}}%
  51.    {\textdef@\scriptscriptstyle
  52.              \ssf@size
  53.              {\firstchoice@false #1}}%
  54.    \glb@settings}
  55.  
  56. \def\textdef@#1#2#3{\hbox{{%
  57.                     \everymath{#1}%
  58.                     \let\f@size#2\selectfont
  59.                     #3}}}
  60. \newif\iffirstchoice@
  61. \firstchoice@true
  62. \def\stepcounter#1{%
  63.   \iffirstchoice@
  64.      \global\expandafter\advance\csname c@#1\endcsname \@ne
  65.      \let\@elt\@stpelt
  66.          \csname cl@#1\endcsname
  67.      \let\@elt\relax
  68.   \fi}
  69. \def\ref#1{\@ifundefined{r@#1}%
  70.          {{\bf ??}%
  71.           \iffirstchoice@
  72.              \@warning
  73.                 {Reference `#1' on page \thepage\space undefined}%
  74.           \fi}%
  75.          {\expandafter\expandafter\expandafter
  76.           \@car \csname r@#1\endcsname \@nil\null}}
  77. \def\pageref#1{\@ifundefined{r@#1}{{\bf ??}%
  78.    \iffirstchoice@ \@warning
  79.        {Reference `#1' on page \thepage \space
  80.     undefined}\fi}{\edef\@tempa{\csname r@#1\endcsname}\expandafter
  81.     \@cdr\@tempa\@nil\null}}
  82. \def\@wrindex#1{\iffirstchoice@\let\thepage\relax
  83.    \xdef\@gtempa{\write\@indexfile{\string
  84.       \indexentry{#1}{\thepage}}}\endgroup\@gtempa
  85.    \if@nobreak \ifvmode\nobreak\fi\fi\fi\@esphack}
  86.  
  87. \def\@wrglossary#1{\iffirstchoice@\let\thepage\relax
  88.    \xdef\@gtempa{\write\@glossaryfile{\string
  89.       \glossaryentry{#1}{\thepage}}}\endgroup\@gtempa
  90.    \if@nobreak \ifvmode\nobreak\fi\fi\fi\@esphack}
  91. \def\label#1{\@bsphack\iffirstchoice@\if@filesw {\let\thepage\relax
  92.    \def\protect{\noexpand\noexpand\noexpand}%
  93. \xdef\@gtempa{\write\@auxout{\string
  94.       \newlabel{#1}{{\@currentlabel}{\thepage}}}}}\@gtempa
  95.    \if@nobreak \ifvmode\nobreak\fi\fi\fi\fi\@esphack}
  96. \def\mathhexbox#1#2#3{\text{$\m@th\mathchar"#1#2#3$}}
  97. %% \CharacterTable
  98. %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  99. %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  100. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  101. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  102. %%   Dollar        \$     Percent       \%     Ampersand     \&
  103. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  104. %%   Asterisk      \*     Plus          \+     Comma         \,
  105. %%   Minus         \-     Point         \.     Solidus       \/
  106. %%   Colon         \:     Semicolon     \;     Less than     \<
  107. %%   Equals        \=     Greater than  \>     Question mark \?
  108. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  109. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  110. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  111. %%   Right brace   \}     Tilde         \~}
  112. \endinput
  113. %% 
  114. %% End of file `amstext.sty'.
  115.